﻿<UserControl x:Class="Gaiocorp.SLMapViewer.ErrowWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300"
    xmlns:Res="clr-namespace:Gaiocorp.SLMapViewer.Resources">

    <UserControl.Resources>
        <Res:ApplicationStrings x:Name="ApplicationStrings"></Res:ApplicationStrings>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Border x:Name="brdError" BorderBrush="Black"  BorderThickness="1"  Visibility="Visible" Width="370" Height="230">
            <Grid x:Name="gridError" Opacity="1" ShowGridLines="False" Background="Silver">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="150"></RowDefinition>
                    <RowDefinition Height="50"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="70"></ColumnDefinition>
                    <ColumnDefinition Width="300"></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <Rectangle x:Name="RectErrTitle" RadiusX="5" RadiusY="5" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Fill="Blue" Height="20" Margin="2 2 2 2"></Rectangle>
                <TextBlock x:Name="txbErrTitle" Grid.Row="0" Grid.ColumnSpan="2" Grid.Column="0" Text="{Binding ErrorOccured, Source={StaticResource ApplicationStrings}}" Foreground="White"  Margin="5"/>
                <Image  x:Name="ErrorImg" 
                            Source="../Images/error.png" 
                            Grid.Row="1" Grid.Column="0"
                            HorizontalAlignment="Center" VerticalAlignment="Center">

                </Image>
                <ScrollViewer x:Name="SvErr" Width="295" 
                                        Margin="0,0,0,0" Grid.Row="1" Grid.Column="1"
                                        VerticalScrollBarVisibility="Auto" 
                                        HorizontalScrollBarVisibility="Auto"
                                        >
                    <TextBox x:Name="txbErrBody" IsReadOnly="True" Grid.Row="1" Grid.Column="1" Width="250" Text="" TextWrapping="Wrap" Margin="5"/>
                </ScrollViewer>
                <Button x:Name="btnErrorClose" 
                        Content="{Binding OK, Source={StaticResource ApplicationStrings}}" 
                        Width="70"
                        Height="30" 
                        Margin="5,5,5,5" 
                        Grid.Row="2" 
                        Grid.Column="0"
                        Grid.ColumnSpan="2"
                        IsEnabled="True"
                        HorizontalAlignment="Center"
                        Click="btnErrorClose_Click"></Button>
            </Grid>
        </Border>
    </Grid>
</UserControl>
